package edu.whut.mall.portal.service;

import edu.whut.mall.model.User;

/**
 * @program: d9lab-mall
 * @description: 用户接口
 * @author: Wayne
 * @create: 2020-05-15 14:40
 **/
public interface IUserService {

    /**
     * @Description:  根据openId获取User
     * @Param: openId
     * @return: user
     * @Author: lvfanbing
     * @Date: 2020/5/30 17:15
     */
    User selectUserByOpenId(String openId);

    /**
     * @Description: 更具有的用户信息新增用户
     * @Param: User
     * @return: int
     * @Author: lvfanbing
     * @Date: 2020/5/30 17:16
     */
    int insertUserSelective(User user);

    /**
     * @Description
     * @param openId
     * @param user
     * @return
     * @Author lvfanbing
     * @Date 2020/10/17 15:17
     */
    int updateUserSelective(String openId, User user);
}
